home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.3
/
CoordToWin.3
< prev
next >
Wrap
Text File
|
1995-07-25
|
3KB
|
67 lines
TTTTkkkk____CCCCoooooooorrrrddddssssTTTTooooWWWWiiiinnnnddddoooowwww((((3333)))) TTTTkkkk (((( )))) TTTTkkkk____CCCCoooooooorrrrddddssssTTTTooooWWWWiiiinnnnddddoooowwww((((3333))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
Tk_CoordsToWindow - Find window containing a point
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
####iiiinnnncccclllluuuuddddeeee <<<<ttttkkkk....hhhh>>>>
Tk_Window
TTTTkkkk____CCCCoooooooorrrrddddssssTTTTooooWWWWiiiinnnnddddoooowwww(_r_o_o_t_X, _r_o_o_t_Y, _t_k_w_i_n)
AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
int _r_o_o_t_X (in) X-coordinate (in root window
coordinates).
int _r_o_o_t_Y (in) Y-coordinate (in root window
coordinates).
Tk_Window _t_k_w_i_n (in) Token for window that
identifies application.
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
TTTTkkkk____CCCCoooooooorrrrddddssssTTTTooooWWWWiiiinnnnddddoooowwww locates the window that contains a given
point. The point is specified in root coordinates with
_r_o_o_t_X and _r_o_o_t_Y (if a virtual-root window manager is in use |
then _r_o_o_t_X and _r_o_o_t_Y are in the coordinate system of the |
virtual root window). The return value from the procedure
is a token for the window that contains the given point. If
the point is not in any window, or if the containing window
is not in the same application as _t_k_w_i_n, then NULL is
returned.
The containing window is decided using the same rules that
determine which window contains the mouse cursor: if a
parent and a child both contain the point then the child
gets preference, and if two siblings both contain the point
then the highest one in the stacking order (i.e. the one
that's visible on the screen) gets preference.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
containing, coordinates, root window
Page 1 (printed 7/23/95)